package com.xiaobai.dao;

import com.xiaobai.pojo.HealthInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface HealthInfoDao {

    int deleteByPrimaryKey(Integer id);

    int insert(HealthInfo record);

    int insertSelective(HealthInfo record);

    HealthInfo selectByPrimaryKey(Integer id);

    List<HealthInfo> getListById(@Param("studentIds") List<String> studentIds);

    int updateByPrimaryKeySelective(HealthInfo record);

    int updateByPrimaryKey(HealthInfo record);

    Integer selectIdByStudentId(String studentId);

    HealthInfo selectByStudentId(String studentId);

    int saveOrUpdateByStudentId(@Param("healthInfo") HealthInfo healthInfo);

    int closeAction(Integer id);

    int openAction(Integer id);

    List<HealthInfo> getOpenIds();

    int closeActionByIds(@Param("ids") List<Integer> ids);
}